<?php
session_start();
isLogin();

if(isset($_POST["Submits"])){
	$sql="update ".$prefix."websetting set liebiao_remai=".$_POST['liebiao_remai'].",liebiao_shoushen=".$_POST['liebiao_shoushen'].",liebiao_fengxiong=".$_POST['liebiao_fengxiong'].",liebiao_search=".$_POST['liebiao_search'].",liebiao_miaosha=".$_POST['liebiao_miaosha']."  where w_id=1";
	if(mysql_query($sql)){
		reload_js("修改成功","index.php?cmd=pictype");
	}else{
		reload_js("修改失败，原因：程序错误，请联系技术人员进行修改","index.php");
	}
}

?>
<script language="javascript" src="../templates/<?php echo $moban;?>/js/common.js"></script>
<script language="javascript">
changeWebTitle('大小图设置');
</script>

<div class="ContentRight">
    <div class="ContentRightTop">
      <div class="BarLeft"></div>
      <div class="ContentRightTopText">大小图设置</div>
      <div class="BarRight"></div>
      <div class="Cal"></div>
    </div>
    <div class="ContentRightBox">
	<form action="" name="linkform" method="post">
      <table width="100%" cellpadding="0" class="Table1" bordercolor="#4ab902" border="1" cellspacing="0">
        <tr>
          <td width="22%" align="right">remai页面默认：</td>
          <td width="78%" height="25" align="left"><p>
            <label>
              <input name="liebiao_remai" type="radio" id="liebiao_remai_0" value="1" checked>
              大图</label>
            <label>
              <input type="radio" name="liebiao_remai" value="0" id="liebiao_remai_1" <?php if($liebiao_remai==0){echo "checked";}?>>
              小图</label>
            <br>
          </p></td>
        </tr>
        <tr>
          <td align="right">shoushen页面默认：</td>
          <td height="25" align="left"><label>
            <input name="liebiao_shoushen" type="radio" id="liebiao_remai_2" value="1" checked>
            大图</label>
            <label>
              <input type="radio" name="liebiao_shoushen" value="0" id="liebiao_remai_3" <?php if($liebiao_shoushen==0){echo "checked";}?>>
          小图</label></td>
        </tr>
        <tr>
          <td align="right">fengxiong页面默认：</td>
          <td height="25" align="left"><label>
            <input name="liebiao_fengxiong" type="radio" id="liebiao_remai_4" value="1" checked>
            大图</label>
            <label>
              <input type="radio" name="liebiao_fengxiong" value="0" id="liebiao_remai_5" <?php if($liebiao_fengxiong==0){echo "checked";}?>>
          小图</label></td>
        </tr>
        <tr>
          <td align="right">search页面默认：</td>
          <td height="25" align="left"><label>
            <input name="liebiao_search" type="radio" id="liebiao_remai_6" value="1" checked>
            大图</label>
            <label>
              <input type="radio" name="liebiao_search" value="0" id="liebiao_remai_7" <?php if($liebiao_search==0){echo "checked";}?>>
          小图</label></td>
        </tr>
        <tr>
          <td align="right">miaosha页面默认：</td>
          <td height="25" align="left"><label>
            <input name="liebiao_miaosha" type="radio" id="liebiao_remai_8" value="1" checked>
            大图</label>
            <label>
              <input type="radio" name="liebiao_miaosha" value="0" id="liebiao_remai_9" <?php if($liebiao_miaosha==0){echo "checked";}?>>
          小图</label></td>
        </tr>
        <tr>
          <td align="right">版权所有：</td>
          <td height="25" align="left"><a href="http://www.fengsh8.com" target="_blank">风尚淘客程序</a></td>
        </tr>
        <tr>
          <td align="right">&nbsp;</td>
          <td height="25" align="left">
            <input name="Submits" type="submit" id="Submits" value=" 提  交" />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <input name="Reset" type="reset" id="Reset" value=" 重 置 " />          </td>
        </tr>
      </table>
	  </form>
    </div>
    <div class="Cal"></div>
  </div>